package com.wuliming.gulimall.product.feign;

import com.wuliming.common.utils.R;
import com.wuliming.gulimall.coupon.entity.SpuBoundsEntity;
import com.wuliming.to.SkuReductionTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-coupon")
@Component
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R save(@RequestBody SpuBoundsEntity spuBounds);

    @PostMapping("/coupon/skufullreduction/saveSkuReduction")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
